/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.subsystems;

import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.templates.OI;

/**
 *
 * @author Jared
 */
public class DecideAuto extends Subsystem {
    private static DecideAuto instance = null;
    private boolean[] m_auto_array;
    private int automode;
    
    // Put methods for controlling this subsystem
    // here. Call these from Commands
  public static DecideAuto getInstance(){
    if(instance == null){
        instance = new DecideAuto();
       
    }
    return instance;
}
  public int autoMode(){
      m_auto_array = OI.getInstance().getAutoArray();
      if(m_auto_array[0]==true){
          automode=1;
      }          
      if(m_auto_array[1]==true){
          automode=2;
      }
      if(m_auto_array[2]==true){
          automode=3;
      }
      if(m_auto_array[3]==true){
          automode=4;
      }
      return automode;           
      
  }


    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}
